home *** CD-ROM | disk | FTP | other *** search
- /*
- File: ShutDown.h
-
- Copyright: © 1983-1993 by Apple Computer, Inc.
- All rights reserved.
-
- Version: System 7.1 for ETO #11
- Created: Tuesday, March 30, 1993 18:00
-
- */
-
- #ifndef __SHUTDOWN__
- #define __SHUTDOWN__
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
-
-
- enum {
-
- sdOnPowerOff = 1, /*call procedure before power off.*/
- sdOnRestart = 2, /*call procedure before restart.*/
- sdOnUnmount = 4, /*call procedure before unmounting.*/
- sdOnDrivers = 8, /*call procedure before closing drivers.*/
- sdRestartOrPower = 3 /*call before either power off or restart.*/
- };
-
- typedef pascal void (*ShutDwnProcPtr)(void);
-
- #ifdef __cplusplus
- extern "C" {
- #endif
- pascal void ShutDwnPower(void)
- = {0x3F3C,0x0001,0xA895};
- pascal void ShutDwnStart(void)
- = {0x3F3C,0x0002,0xA895};
- pascal void ShutDwnInstall(ShutDwnProcPtr shutDownProc,short flags)
- = {0x3F3C,0x0003,0xA895};
- pascal void ShutDwnRemove(ShutDwnProcPtr shutDownProc)
- = {0x3F3C,0x0004,0xA895};
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-